class Heap<T>{
   private data: T[] = [];
   private length: number = 0;

   // 私有工具方法,将数组中的两个元素交换位置
   private swap(i: number, j: number){
    //    [this.data[i], this.data[j]] = [this.data[j], this.data[i]] // Ts的写法
       const temp = this.data[i]
       this.data[i] = this.data[j];
       this.data[j] = temp;
   }
   // 方法
   insert(value:T){}

   // 删除
   extract():T | undefined{
        return undefined
   }

   peek():T | undefined {
        return undefined
   }

   size(){
    return this.length
   }

   isEmpty(){
    return this.length == 0
   }

   buildHeap(arr:T[]){

   }

}

const arr = [100,20,34,8]

export default {}